

create_thread: 01_create.c
	-gcc $^ -o $@ 
	-./$@
	-rm $@

sum_sqr: 02_sum_sqr.c
	-gcc $^ -o $@ 
	-./$@
	-rm $@


sum_sqr_thread: 03_sum_sqr_thread.c
	-gcc $^ -o $@ -pthread
	-./$@
	-rm $@

cancel: 03_cancel.c
	-gcc $^ -o $@ -pthread
	-./$@
	-rm $@


mutex_lock: 04_mutex_lock.c
	-gcc $^ -o $@ -pthread
	-./$@
	-rm $@


mqueue: 05_mqueue.c
	-gcc $^ -o $@ -pthread -lrt
	-./$@
	-rm $@
